{% extends "departments/base.html" %}
<!-- stylesheet -->
{% load static %}
{% block title %}
  院校部门
{% endblock %}
{% block departments-external %}
{% endblock %}

 {% block logo %}
 <a href="{% url 'overview:index' %}" title="极客协会"><img src="{% static 'images/departments/changda.png' %}" width="120" height="120" border="0" alt="极客协会" title="极客协会"></a><!--#endeditable-->
{% endblock %}

       {% block department %}
  <div class="bottom-header front-page">
    <div class="container">
      <div class="row">
        <div class="col-sm-12">
          <h2 class="clearfix">
常州大学 <span class="span-dot">.</span><span>
院校部门</span> </h2>
        </div>
        <div class="col-sm-8 col-sm-offset-2">
          <p>
            为常大学子提供选择的无限可能，点击下面按钮以发现更多~<!--#endeditable--></p>
          <div class="header-btn-1">
<a class="header-button-one" href="{% url 'departments:associations' 0 %}">选择你的归宿</a><!--#endeditable--></div> <div class="header-btn-2">
<a class="header-button-two" href="#news">更多信息</a><!--#endeditable--></div> </div>
      </div>
    </div>
  </div>
          {% endblock %}
{% block introduction %}
<section id="news" class="front-page-section">
  <div class="section-header">
    <div class="contanier">
      <div class="row">
        <div class="col-sm-12">
          <h3>最新动态</h3>
        </div>
      </div>
    </div>
  </div>
  <div class="section-content">
    <div class="container">
      <div class="row">
        <div id="news-carousel" class="carousel slide" data-ride="carousel">
          <!-- Indicators -->
          <ol class="carousel-indicators">
            <li data-target="#news-carousel" data-slide-to="0" class="active"></li>
            <li data-target="#news-carousel" data-slide-to="1" class=""></li>
          </ol>
          <!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item active">
<div>
{%if not association_recent_posts %}
<div class="news-blog-post col-md-4 col-sm-6 col-xs-12">
<div class="post"><a class="post-title" href="#">暂无 </a><a class="post-button" href="#"><i class="fa fa-info-circle"></i>read more </a></div></div>
{% endif %}
{% for post in association_recent_posts %}
<div class="news-blog-post col-md-4 col-sm-6 col-xs-12">
<div class="post">
    <a class="post-title" href="{% url 'departments:association_post_info' post.id %}">{{post.title}} </a>
    <a class="post-button" href="{% url 'departments:association_post_info' post.id %}"><i class="fa fa-info-circle"></i>read more </a>
</div>
</div>
{% endfor %}
<div class="col-xs-12">
<h3>association</h3>
</div>
</div></div>
<div class="item"><div>
{% if not department_recent_posts %}
<div class="news-blog-post col-md-4 col-sm-6 col-xs-12">
<div class="post">
    <a class="post-title" href="#">暂无 </a>
    <a class="post-button" href="#"><i class="fa fa-info-circle"></i>read more </a>
</div>
</div>
{% endif %}
{% for notice in department_recent_posts %}
<div class="news-blog-post col-md-4 col-sm-6 col-xs-12">
<div class="post">
    <a class="post-title" href="{% url 'departments:department_post_info' notice.id %}">{{notice.title}} </a>
    <a class="post-button" href="{% url 'departments:department_post_info' notice.id %}"><i class="fa fa-info-circle"></i>read more </a>
</div>
</div>
{% endfor %}
<div class="col-xs-12">
<h3>department</h3>
</div>

<!--#endeditable--></div></div>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>
{% endblock %}
